
// 用户信息存储库

import { defineStore } from 'pinia'

export const userMode = defineStore({
    id: 'user',
    state: () => {
        return {
            token: ""
        }
    },
    actions: {
        editToken(token: string) {
            this.token = token
        },
        getToken() {
            return this.token
        }
    }
}) 